package xyz.weizhi.tanhua.dubbo.api;

import xyz.weizhi.tanhua.model.enums.CommentType;
import xyz.weizhi.tanhua.model.mongo.Comment;
import xyz.weizhi.tanhua.model.vo.PageResult;

import java.util.List;

/**
 * @Author milian
 * @Date 2021/10/27 0027 20:28
 */
public interface CommentsApi {
    PageResult findComments(String movementId, CommentType comment, Integer page, Integer pagesize);

    Integer save(Comment commentObj);

    Boolean hasComment(String movementId, Long id, int type);

    Integer delete(String movementId, Long id, int type);
}
